import TileLayer from "ol/layer/Tile";
import {Vector, XYZ} from "ol/source";
import {TDCVAURL, TDIMGURL, TDVECURL} from "@/consts";
import VectorLayer from "ol/layer/Vector";


export const TdVecLayer = new TileLayer({
  source: new XYZ({
    url: TDVECURL,
    wrapX: false
  })
});

export  const TdCvaLayer = new TileLayer({
  source: new XYZ({
    url: TDCVAURL,
    wrapX: false
  })
});

export const TdImgLayer = new TileLayer({
  source: new XYZ({
    url: TDIMGURL,
    wrapX: false,
  }),
})


export const drawVectorLayer = new VectorLayer( { source: new Vector() })
